Skip to content

Conversation

FalsePattern
Copy link
Contributor

Updated build system to use root_module and addLibrary with .linkage = .static

Replaced all callconv(.C) with callconv(.c)

Tested with both zig 0.14.1 and 0.15.0-dev.1283+1fcaf90dd

Updated build system to use root_module and addLibrary with .linkage = .static

Replaced all callconv(.C) with callconv(.c)
@hazeycode hazeycode requested a review from Copilot August 2, 2025 14:15
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Zig build system to be compatible with Zig version 0.15, addressing breaking changes in the build API.

  • Migrated from addStaticLibrary to addLibrary with explicit static linkage
  • Updated build configuration to use root_module pattern for both tests and library
  • Ensured backward compatibility with Zig 0.14.1

@hazeycode hazeycode merged commit c3b5731 into zig-gamedev:main Aug 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants